/**
 * Created by yjj on 2017/5/11.
 */
import axios from 'axios';
import {API_NEW_VERSION} from '../api';

export const wholeShipment = () => {
  return axios.get(API_NEW_VERSION + 'whole_shipment');
};

export const shipmentStatistics = (type) => {
  return axios.get(API_NEW_VERSION + 'shipment_statistics/' + type);
};

export const lineStatistics = () => {
  return axios.get(API_NEW_VERSION + 'line_statistics');
};

export const cityDeliveringAmount = (cityId) => {
  return axios.get(API_NEW_VERSION + 'city_delivering_amount/' + cityId);
};

export const cityTop = (top) => {
  return axios.get(API_NEW_VERSION + 'city_top/' + top);
};

export const partnerTop = (top) => {
  return axios.get(API_NEW_VERSION + 'partner_top/' + top);
};

export const dotTop = (top) => {
  return axios.get(API_NEW_VERSION + 'dot_top/' + top);
};

export const partnerStatistics = () => {
  return axios.get(API_NEW_VERSION + 'partner_statistics');
};

export const shortTaskStatistics = () => {
  return axios.get(API_NEW_VERSION + 'short_task_statistics');
};
